<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/20
 * Time: 11:38
 */
$email = 'jacky.caaaaahen@sina.com.cn';
//请使用strpos和substr来截取

$i = strpos($email,"@");
$username = substr($email,0,$i);
$domain = substr($email,$i);
var_dump($username);
var_dump($domain);